package com.jt.service;

import com.jt.mapper.UserMapper;
import com.jt.pojo.UserPojo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceimpl implements UserService{
    @Autowired
    private UserMapper userMapper;
    public List<UserPojo> findAll() {
        return userMapper.findAll();
    }

    public void insertUser(UserPojo userPojo) {
        userMapper.insertUser(userPojo);
    }

    public void updateUser(UserPojo userPojo) {
        userMapper.updateUser(userPojo);
    }

    public void deleteUser(UserPojo userPojo) {
        userMapper.deleteUser(userPojo);
    }


}
